package com.zjk.storage.core.provider.amazonS3;

import com.zjk.storage.core.config.BaseConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
public class AmazonS3Config extends BaseConfig {
    private String accessKey;
    private String secretKey;
    private String region;
    private String endpoint;
    private String bucketName;

    /**
     * true path-style nginx 反向代理和S3默认支持 pathStyle {http://endpoint/bucketname} false
     * supports virtual-hosted-style 阿里云等需要配置为 virtual-hosted-style
     * 模式{http://bucketname.endpoint}
     */
    private boolean pathStyleAccess = true;
    /**
     * 访问域名
     */
    private String domain = "";
    /**
     * 基础路径
     */
    private String basePath = "";

    /**
     * bucket 不存在自动创建
     */
    private boolean bucketAutoCreate = true;
}
